<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加用户</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: -20px;
            margin-bottom: 50px;
        }

        form {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
            width: 500px;
        }

        label {
            display: block;
            margin-bottom: 5px;
        }

        input,
        select,
        textarea {
            width: 100%;
            padding: 6px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 3px;
        }

        textarea {
            height: 40px;
        }

        input[type="submit"] {
            background-color: #007BFF;
            cursor: pointer;
        }

        input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>

<body>
<form action="GETyizhuguanli.jsp" method="post" accept-charset="UTF-8">
    <h2>添加用户</h2>
    <label for="patient_name" class="block text-gray-700 font-bold mb-2">患者姓名</label>
    <input type="text" id="patient_name" name="patient_name" required
           class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500">

    <label for="doctor_name" class="block text-gray-700 font-bold mb-2">医生姓名</label>
    <input type="text" id="doctor_name" name="doctor_name" required
           class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500">

    <label for="order_date" class="block text-gray-700 font-bold mb-2">医嘱日期</label>
    <input type="datetime-local" id="order_date" name="order_date" required
           class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500">

    <label for="order_type" class="block text-gray-700 font-bold mb-2">医嘱类型</label>
    <select id="order_type" name="order_type" required
            class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500">
        <option value="检查">检查</option>
        <option value="检验">检验</option>
        <option value="用药">用药</option>
        <option value="治疗">治疗</option>
    </select>

    <label for="order_detail" class="block text-gray-700 font-bold mb-2">医嘱详情</label>
    <textarea id="order_detail" name="order_detail" rows="4"
              class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500"></textarea>

    <label for="execution_status" class="block text-gray-700 font-bold mb-2">执行状态</label>
    <select id="execution_status" name="execution_status"
            class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500">
        <option value="未执行">未执行</option>
        <option value="执行中">执行中</option>
        <option value="已执行">已执行</option>
    </select>

    <label for="execution_time" class="block text-gray-700 font-bold mb-2">执行时间</label>
    <input type="datetime-local" id="execution_time" name="execution_time"
           class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500">

    <label for="remarks" class="block text-gray-700 font-bold mb-2">备注</label>
    <textarea id="remarks" name="remarks" rows="4"
              class="border border-gray-300 p-2 w-full rounded-md focus:outline-none focus:border-blue-500"></textarea>

    <input type="submit" value="添加用户">
</form>
</body>
</html>

